package com.gift.dao;

import com.gift.pojo.AccByDea;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface AccByDeaMapper {
    int deleteByPrimaryKey(Integer adid);

    int insert(AccByDea record);

    int insertSelective(AccByDea record);

    AccByDea selectByPrimaryKey(Integer adid);

    int updateByPrimaryKeySelective(AccByDea record);

    int updateByPrimaryKey(AccByDea record);

    AccByDea selectByDid(@Param("did") int did, @Param("aid") int aid);

    int getCountAll(Map<String, Object> mapO);

    List<AccByDea> getAllBypr(Map<String, Object> mapO);

    List<AccByDea> getAllByShift(@Param("workTimeBegin") LocalDateTime workTimeBegin,@Param("workTimeEnd") LocalDateTime workTimeEnd);

    List<AccByDea> selectByDidAll(int did);


}